home *** CD-ROM | disk | FTP | other *** search
/ Supercompiler 1997 / SUPERCOMPILER97.iso / Delphi 3.0 / DATA.Z / editintf.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1997-01-30  |  25.4 KB  |  505 lines

  1.  
  2. {*******************************************************}
  3. {                                                       }
  4. {       Delphi Visual Component Library                 }
  5. {                                                       }
  6. {       Copyright (c) 1996,97 Borland International     }
  7. {                                                       }
  8. {*******************************************************}
  9.  
  10. unit EditIntf;
  11.  
  12. interface
  13.  
  14. uses SysUtils, Windows, VirtIntf;
  15.  
  16. const
  17.   CursorPos = Integer(0);
  18.   ViewTopPos = Integer(1);
  19.  
  20. type
  21.   { Editor position expressed as column/line after tabs are expanded to spaces }
  22.   TEditPos = record
  23.     Col: SmallInt;
  24.     Line: Longint;
  25.   end;
  26.  
  27.   { Use the TIEditReader class to gain read access to an editor buffer:
  28.  
  29.     NOTES:
  30.       The buffer is accessed as a linear "file" with line breaks included.
  31.       This reader interface could be accessed through a custom read-only
  32.       TStream descendant.
  33.  
  34.     WARNING!!!
  35.      o A TIEditReader should never be active at the same time as a TIEditWriter.
  36.   }
  37.  
  38.   TIEditReader = class(TInterface)
  39.   public
  40.     function GetText(Position: Longint; Buffer: PChar; Count: Longint): Longint;
  41.       virtual; stdcall; abstract;
  42.   end;
  43.  
  44.   { Use the TIEditWriter class to gain write access to an editor buffer:
  45.  
  46.     NOTES:
  47.      o As with the reader, the buffer is accessed as a linear "file" with
  48.        line breaks included.  The writer uses a "copy in place" metaphor for
  49.        modifying the editor buffer.  In other words, the writer can be thought
  50.        of as simply copying from one buffer to another.  All positions (Pos)
  51.        passed to the function are positions relative to the orginal file.  Due
  52.        to the "copy" metaphor of the writer it does not support moving backward
  53.        in the editor buffer. It is recomended that all modifications that must
  54.        be performed should be done from the start to the finish.
  55.      o After the TIEditWriter is freed(released), the undo-buffer of the editor
  56.        is flushed.
  57.  
  58.     WARNING!!!
  59.      o A TIEditWriter should never be active at the same time as a TIEditReader.
  60.   }
  61.  
  62.   TIEditWriter = class(TInterface)
  63.   public
  64.     function CopyTo(Pos: Longint): Boolean; virtual; stdcall; abstract;
  65.     function DeleteTo(Pos: Longint): Boolean; virtual; stdcall; abstract;
  66.     function Insert(Text: PChar): Boolean; virtual; stdcall; abstract;
  67.     function Position: Longint; virtual; stdcall; abstract;
  68.   end;
  69.  
  70.   { The TIEditView represents an individual view on an edit buffer:
  71.  
  72.     This interface allows the cursor and view positions to be accessed and
  73.     updated.  The only restriction on using this interface is that it should
  74.     not be held for any length of time.  Since a view can be deleted at any
  75.     time, the interface could become invalid.
  76.   }
  77.  
  78.   TIEditView = class(TInterface)
  79.   public
  80.     function GetPos(Index: Integer): TEditPos; virtual; stdcall; abstract;
  81.     procedure SetPos(Index: Integer; Value: TEditPos); virtual; stdcall; abstract;
  82.     function GetViewSize: TSize; virtual; stdcall; abstract;
  83.  
  84.     property CursorPos: TEditPos index CursorPos read GetPos write SetPos;
  85.     property TopPos: TEditPos index ViewTopPos read GetPos write SetPos;
  86.     property ViewSize: TSize read GetViewSize;
  87.   end;
  88.  
  89.   { The TIEditorInterface is the base interface to an editor buffer:
  90.  
  91.     Use this interface to obtain TIEditReader, TIEditWriter, and TIEditView
  92.     interfaces.
  93.  
  94.   }
  95.  
  96.   TSyntaxHighlighter = (shNone, shPascal, shSQL, shQuery);
  97.  
  98.   TIEditorInterface = class(TInterface)
  99.   public
  100.     function CreateReader: TIEditReader; virtual; stdcall; abstract;
  101.     function CreateWriter: TIEditWriter; virtual; stdcall; abstract;
  102.     function FileName: string; virtual; stdcall; abstract;
  103.     function LinesInBuffer: Longint; virtual; stdcall; abstract;
  104.     function BufferModified: Boolean; virtual; stdcall; abstract;
  105.     function MarkModified: Boolean; virtual; stdcall; abstract;
  106.     function SetSyntaxHighlighter(SyntaxHighlighter: TSyntaxHighlighter): TSyntaxHighlighter;
  107.       virtual; stdcall; abstract;
  108.     function GetViewCount: Integer; virtual; stdcall; abstract;
  109.     function GetView(Index: Integer): TIEditView; virtual; stdcall; abstract;
  110.   end;
  111.  
  112.   { The TIComponentInterface is the base interface for a component living
  113.     on a form/data module.  Never hold this interface for very long, since
  114.     the component may be deleted at any time.
  115.  
  116.     GetComponentType   - Returns a string representing the type of the
  117.                          component.
  118.     GetParent          - Returns the interface corresponding to the parent
  119.                          control if a TControl, otherwise returns the owner
  120.                          of the control.  If a TPersistent or the root object
  121.                          then it returns nil.
  122.     IsTControl         - Returns True if component is a TControl descendant
  123.     GetPropCount       - Returns the number of published properties on this
  124.                          component.
  125.     GetPropName        - Given the index, returns the property name.
  126.     GetPropType        - Given the index, returns the property type.
  127.     GetPropTypeByName  - Given the name, returns the poperty type
  128.     GetPropValue
  129.     GetPropValueByName - Given the index or name, returns the property value.
  130.                          The untyped var must be large enough to hold the
  131.                          returned value.  If the property is a descendant of
  132.                          TPersistent, the return value is a TIComponent-
  133.                          Interface. For properties of any other object type,
  134.                          the return value is nil.
  135.     SetPropValue
  136.     SetPropValueByName - Given the index or name, sets the property value.
  137.     GetControlCount    - Returns the number of child controls (if a TControl
  138.                          descendant, else returns 0).
  139.     GetControl         - Given the index, returns an interface to the
  140.                          child control.
  141.     GetComponentCount  - Returns the number of child components (if a
  142.                          TComponent descendant, else returns 0).
  143.     GetComponent       - Given the index, returns an interface to the
  144.                          child component.
  145.     Select             - Selects the component and updates the Object Inspector.
  146.     Focus              - Same as Select except it brings the form to front with
  147.                          the component selected.  If this interface is a Form/
  148.                          Data Module, then Focus only brings the form to front.
  149.     Delete             - Deletes the component from the form.  Following this
  150.                          call, this interface will now be invalid and must be
  151.                          freed.
  152.   }
  153.  
  154.   TIComponentInterface = class;
  155.  
  156.   TPropertyType = (ptUnknown, ptInteger, ptChar, ptEnumeration, ptFloat,
  157.     ptString, ptSet, ptClass, ptMethod, ptWChar, ptLString, ptLWString,
  158.     ptVariant);
  159.  
  160.   TGetChildCallback = function (Param: Pointer;
  161.     ComponentInterface: TIComponentInterface): Boolean stdcall;  
  162.  
  163.   TIComponentInterface = class(TInterface)
  164.   public
  165.     function GetComponentType: string; virtual; stdcall; abstract;
  166.     function GetComponentHandle: Pointer; virtual; stdcall; abstract;
  167.     function GetParent: TIComponentInterface; virtual; stdcall; abstract;
  168.     function IsTControl: Boolean; virtual; stdcall; abstract;
  169.     function GetPropCount: Integer; virtual; stdcall; abstract;
  170.     function GetPropName(Index: Integer): string; virtual; stdcall; abstract;
  171.     function GetPropType(Index: Integer): TPropertyType; virtual; stdcall; abstract;
  172.     function GetPropTypeByName(const Name: string): TPropertyType;
  173.       virtual; stdcall; abstract;
  174.     function GetPropValue(Index: Integer; var Value): Boolean;
  175.       virtual; stdcall; abstract;
  176.     function GetPropValueByName(const Name: string; var Value): Boolean;
  177.       virtual; stdcall; abstract;
  178.     function SetProp(Index: Integer; const Value): Boolean;
  179.       virtual; stdcall; abstract;
  180.     function SetPropByName(const Name: string; const Value): Boolean;
  181.       virtual; stdcall; abstract;
  182.     function GetChildren(Param: Pointer; Proc: TGetChildCallback): Boolean;
  183.       virtual; stdcall; abstract;
  184.     function GetControlCount: Integer; virtual; stdcall; abstract;
  185.     function GetControl(Index: Integer): TIComponentInterface;
  186.       virtual; stdcall; abstract;
  187.     function GetComponentCount: Integer; virtual; stdcall; abstract;
  188.     function GetComponent(Index: Integer): TIComponentInterface;
  189.       virtual; stdcall; abstract;
  190.     function Select: Boolean; virtual; stdcall; abstract;
  191.     function Focus: Boolean; virtual; stdcall; abstract;
  192.     function Delete: Boolean; virtual; stdcall; abstract;
  193.   end;
  194.  
  195.   { The TIFormInterface is the base interface to a designed form/data module:
  196.  
  197.      FileName          - Returns the actual filename of the form.
  198.      FormModified      - Returns True if the form has been modified. This is
  199.                          independent of the source code.
  200.      MarkModified      - Forces the form to be marked as modified.  Returns
  201.                          True is successful.
  202.      GetFormComponent  - Returns a TIComponentInterface representing the root
  203.                          component of the Form/Data module.
  204.      FincComponent     - Given the name, returns a component interface of the
  205.                          component on the Form/Data module.  Nil if the
  206.                          component is not found.
  207.      GetComponentFromHandle - Given the component handle (from
  208.                          TIModuleNotifier.ComponentRenamed or
  209.                          TIComponentInterface.GetComponentHandle) returns a
  210.                          TIComponentInterface for that component.
  211.      GetSelCount       - Returns the number of Selected components
  212.      GetSelComponent   - Returns the index'th selected component on the form/
  213.                          Data Module.
  214.      GetCreateParent   - Returns a TIComponentInterface used to parent the
  215.                          component currently being created.
  216.                          NOTE: This is only valid from a TIModuleNotifier.
  217.                          ComponentRenamed callback when OldName = '' and
  218.                          NewName <> ''
  219.      CreateComponent   - Adds a new component of type "TypeName" to the form.
  220.                          if Container is nil, and the component to be added is
  221.                          a TWinControl, then it is parented to the currently
  222.                          selected container.  If Container is non-nil, and it
  223.                          is a TWinControl, then the component is parented to
  224.                          that control.  Set Name to an empty string to allow
  225.                          the component's name to be auto-generated.  Set W and
  226.                          H to -1 to use the default size of the component. Set
  227.                          X and Y to -1 to center the component on the form.
  228.   }
  229.  
  230.   TIFormInterface = class(TInterface)
  231.   public
  232.     function FileName: string; virtual; stdcall; abstract;
  233.     function FormModified: Boolean; virtual; stdcall; abstract;
  234.     function MarkModified: Boolean; virtual; stdcall; abstract;
  235.     function GetFormComponent: TIComponentInterface; virtual; stdcall; abstract;
  236.     function FindComponent(const Name: string): TIComponentInterface;
  237.       virtual; stdcall; abstract;
  238.     function GetComponentFromHandle(ComponentHandle: Pointer): TIComponentInterface;
  239.       virtual; stdcall; abstract;
  240.     function GetSelCount: Integer; virtual; stdcall; abstract;
  241.     function GetSelComponent(Index: Integer): TIComponentInterface;
  242.       virtual; stdcall; abstract;
  243.     function GetCreateParent: TIComponentInterface; virtual; stdcall; abstract;
  244.     function CreateComponent(Container: TIComponentInterface;
  245.       const TypeName: string; X, Y, W, H: Integer): TIComponentInterface;
  246.       virtual; stdcall; abstract;
  247.   end;
  248.  
  249.   TResHeaderValue = (hvFlags, hvLanguage, hvDataVersion, hvVersion,
  250.     hvCharacteristics);
  251.  
  252.   { TIResourceEntry is a raw interface to a resource entry in the project's
  253.     resource file (<projectname>.RES).
  254.  
  255.     This interface is a very raw.  No implication on what is contained within
  256.     a particular entry is made.  It if up to the add-in developer to interpret
  257.     the data accessed through this interface.  NOTE: The 'MAINICON' entry and
  258.     related entries should not be modified as these are maintained by Delphi.
  259.  
  260.     GetResourceType
  261.     SetResourceType   - Sets and gets the resource type of this entry.  Follows
  262.                         Windows standard of specifying a type by name or value.
  263.                         If the high-word is 0, then the low-word is the
  264.                         resource type value, otherwise it is a pointer to a
  265.                         null terminated ANSI (byte per char) string. Most
  266.                         predefined types are by value.
  267.  
  268.     GetResourceName
  269.     SetResourceName   - Sets and gets the resource name of this entry.  Follows
  270.                         Windows standard of specifying a type by name or value.
  271.                         If the high-word is 0, then the low-word is the
  272.                         resource type value, otherwise it is a pointer to a
  273.                         null terminated ANSI (byte per char) string.
  274.  
  275.     GetHeaderValue
  276.     SetHeaderValue    - Gets and sets various resource header values.  Pass in
  277.                         one of the TResHeaderValues enums to indicate which
  278.                         value to get/set.  Although some values are 16bits
  279.                         (Word) these functions operation only on 32bits
  280.                         (Integer).
  281.  
  282.     GetData           - Returns a raw pointer to the actual resource data buffer.
  283.  
  284.     GetDataSize       - Returns the current size of the data buffer.
  285.  
  286.     SetDataSize       - Resizes the current data buffer.  If the size is
  287.                         smaller than the current size, the data is simply
  288.                         truncated without regard to its current contents.
  289.  
  290.     GetEntryHandle    - Returns a unique handle value identifying the resource
  291.                         entry.
  292.   }
  293.  
  294.   TIResourceEntry = class(TInterface)
  295.   public
  296.     function GetResourceType: PChar; virtual; stdcall; abstract;
  297.     function GetResourceName: PChar; virtual; stdcall; abstract;
  298.     function Change(NewType, NewName: PChar): Boolean; virtual; stdcall; abstract;
  299.     function GetHeaderValue(HeaderValue: TResHeaderValue;
  300.       var Value: Integer): Boolean; virtual; stdcall; abstract;
  301.     function SetHeaderValue(HeaderValue: TResHeaderValue;
  302.       Value: Integer): Boolean; virtual; stdcall; abstract;
  303.     function GetData: Pointer; virtual; stdcall; abstract;
  304.     function GetDataSize: Integer; virtual; stdcall; abstract;
  305.     function SetDataSize(NewSize: Integer): Boolean; virtual; stdcall; abstract;
  306.     function GetEntryHandle: Pointer; virtual; stdcall; abstract;
  307.   end;
  308.  
  309.   { The TIResourceFile is an interface on the project's resource file
  310.     (<projectname>.RES).
  311.  
  312.     GetEntryCount     - Returns the number of Resource entries.
  313.  
  314.     GetEntry          - Given an index, returns a TIResourceEntry of the
  315.                         index'th entry.
  316.  
  317.     FindEntry         - Given a Resource type and name, return a
  318.                         TIResourceEntry or nil if not found.
  319.  
  320.     DeleteEntry       - Given an entry handle, delete the given resource
  321.                         entry.
  322.  
  323.     CreateEntry       - Creates a new resource entry of the given type and name
  324.                         and returns a TIResourceEntry.  Returns nil if the
  325.                         entry already exists or any other error occurs.
  326.   }
  327.  
  328.   TIResourceFile = class(TInterface)
  329.   public
  330.     function FileName: string; virtual; stdcall; abstract;
  331.     function GetEntryCount: Integer; virtual; stdcall; abstract;
  332.     function GetEntry(Index: Integer): TIResourceEntry; virtual; stdcall; abstract;
  333.     function GetEntryFromHandle(EntryHandle: Pointer): TIResourceEntry; virtual; stdcall; abstract;
  334.     function FindEntry(ResType, Name: PChar): TIResourceEntry; virtual; stdcall; abstract;
  335.     function DeleteEntry(EntryHandle: Pointer): Boolean; virtual; stdcall; abstract;
  336.     function CreateEntry(ResType, Name: PChar; Flags, LanguageId: Word;
  337.       DataVersion, Version, Characteristics: Integer): TIResourceEntry; virtual; stdcall; abstract;
  338.   end;
  339.  
  340.   { The TIModuleNotifer interface is a client provided interface:
  341.  
  342.     Use this interface as a base to a client defined implementation.  An
  343.     instance of the TIModuleNotifer decendant is the registered with a
  344.     TIModuleInterface in order to recieve notifications for the events
  345.     defined by the TNotifyCode.
  346.  
  347.       ncModuleDeleted    - the Module associated with the TIModule is being
  348.                            freed.  Perform any clean-up and free all references
  349.                            to a TIModuleInterface, including un-registering
  350.                            the notifier class.
  351.       ncModuleRenamed    - The module was renamed by a "save as" operation.
  352.       ncEditorModified   - The edit buffer was modified by the user or through
  353.                            a TIEditWriter interface (internal of external).
  354.       ncFormModified     - The form was modified by the user or through
  355.                            a TIFormInterface (internal of external).
  356.       ncEditorSelected   - An edit view was selected and focused.
  357.       ncFormSelected     - The associated form was selected and focused.
  358.       ncBeforeSave       - This is sent right before the module (editor and
  359.                            possibly the form) is actually saved to the file
  360.                            system
  361.       ncAfterSave        - Like the ncBeforeSave this is after all saving has
  362.                            occured and was successful.
  363.       ncFormSaving       - This is sent just prior to the associated form is
  364.                            actually streamed out.  This *may* be sent after an
  365.                            ncBeforeSave, but not always.  This may be sent as
  366.                            a result of a project compile operated without an
  367.                            ncBeforSave being sent.
  368.       ncProjResModified  - If this notifier is attached to a project module,
  369.                            this event will be sent when the project resource
  370.                            file changes (mainly when the user changes the
  371.                            Icon, or other changes are made through the
  372.                            TIResourceFile interface).
  373.  
  374.       ComponentRenamed   - Before any component on the associated form/data
  375.                            model is renamed, this event is triggered allowing
  376.                            the interface to track any changes to component on
  377.                            a form.  If NewName is an empty string, component,
  378.                            OldName was deleted.  If OldName is an empty string,
  379.                            component NewName was added and you may call
  380.                            TIFormInterface.GetCreateParent to determine the
  381.                            container in which this component is being created.
  382.                            .GetCreateParent is only valid if component is a
  383.                            TControl.
  384.                            NOTE: This procedure will *NOT* be called when the
  385.                            form is being destroyed due to the form designer
  386.                            being destroyed.
  387.   }
  388.  
  389.   TNotifyCode = (ncModuleDeleted, ncModuleRenamed, ncEditorModified,
  390.     ncFormModified, ncEditorSelected, ncFormSelected, ncBeforeSave,
  391.     ncAfterSave, ncFormSaving, ncProjResModified);
  392.  
  393.   TIModuleNotifier = class(TInterface)
  394.   public
  395.     procedure Notify(NotifyCode: TNotifyCode); virtual; stdcall; abstract;
  396.     procedure ComponentRenamed(ComponentHandle: Pointer;
  397.       const OldName, NewName: string); virtual; stdcall; abstract;
  398.   end;
  399.  
  400.   { The TIModuleInterface represents any file/module open in the IDE:
  401.  
  402.     A module is simply a file, or a file and form.  Use this interface to gain
  403.     access to the edit buffer and form. There is only one instance of a
  404.     TIModuleInterface per module, but is reference counted so it can be treated
  405.     as separate instances.  When finished with the interface, the owner *must*
  406.     "free" it. For instance, if a TIModuleNotifier object is told that the
  407.     module was deleted.
  408.  
  409.     Functions:
  410.  
  411.     GetEditorInterface - This returns an interface to the associated edit
  412.                          buffer.
  413.     GetFormInterface   - This returns an interface to the associated form, if
  414.                          one exists.  Returns nil otherwise.
  415.     GetAncestortModule - Return the ancestor module to this Form/Data module
  416.                          if not a direct descendent of a TForm or TDataModule.
  417.     GetProjectResource - If this module interface is referencing a project
  418.                          module, this will return an interface on the project's
  419.                          resource.  Returns nil if this is not a project module
  420.                          interface. (this resource contains the application's
  421.                          main ICON as entry 'MAINICON').
  422.     IsProjectModule    - Returns True if this is a project module interface,
  423.                          False, otherwise.
  424.     Close              - Returns true if the module was closed.
  425.                          This may cause the ncModuleDeleted notification to
  426.                          be triggered.  If another form references this module
  427.                          through form inheritance, or form linking, the module
  428.                          will remain "open" but is marked for deletion.
  429.                          NOTE: This will close the module without saving or
  430.                                even asking the user to save. See the Save
  431.                                function.
  432.     Save               - Returns true if successfully saved. Pass True in order
  433.                          force the save operation without the user being asked.
  434.                          Otherwise the user will be asked.  If the module is
  435.                          marked UnNamed, the the "Save As" dialog will be
  436.                          presented to the user.
  437.     Rename             - Renames the current module. The form file name will be
  438.                          derived from the new name. An ncModuleRenamed
  439.                          notification will be sent.
  440.     GetFileSystem      - Returns true if able to get the current file system
  441.                          associated with this module. An empty string indicates
  442.                          the default file system.
  443.     SetFileSystem      - Returns true if able to set the file system to the
  444.                          indicated file system. An empty string indicates the
  445.                          default file system.  One use is in response to an
  446.                          ncModuleRenamed notification and tne new name is
  447.                          unavailable in the current file system.
  448.     ShowSource         - Selects and focuses the top-most edit buffer view.
  449.     ShowForm           - Selects and focused the form, if present.
  450.     AddNotifier        - Registers an instance of a descendant to TIModule-
  451.                          Notifier.
  452.     RemoveNotifier     - Removes a registered instance of a TIModuleNotifier.
  453.   }
  454.  
  455.   TIModuleInterface = class(TInterface)
  456.   public
  457.     function GetEditorInterface: TIEditorInterface; virtual; stdcall; abstract;
  458.     function GetFormInterface: TIFormInterface; virtual; stdcall; abstract;
  459.     function GetAncestorModule: TIModuleInterface; virtual; stdcall; abstract;
  460.     function GetProjectResource: TIResourceFile; virtual; stdcall; abstract;
  461.     function IsProjectModule: Boolean; virtual; stdcall; abstract;
  462.     function Close: Boolean; virtual; stdcall; abstract;
  463.     function Save(ForceSave: Boolean): Boolean; virtual; stdcall; abstract;
  464.     function Rename(const NewName: string): Boolean; virtual; stdcall; abstract;
  465.     function GetFileSystem(var FileSystem: string): Boolean; virtual; stdcall; abstract;
  466.     function SetFileSystem(const FileSystem: string): Boolean; virtual; stdcall; abstract;
  467.     function ShowSource: Boolean; virtual; stdcall; abstract;
  468.     function ShowForm: Boolean; virtual; stdcall; abstract;
  469.     function AddNotifier(AModuleNotifier: TIModuleNotifier): Boolean; virtual; stdcall; abstract;
  470.     function RemoveNotifier(AModuleNotifier: TIModuleNotifier): Boolean; virtual; stdcall; abstract;
  471.   end;
  472.  
  473.   { TIProjectCreator interface
  474.  
  475.   }
  476.  
  477.   TIProjectCreator = class(TInterface)
  478.   public
  479.     function Existing: Boolean; virtual; stdcall; abstract;
  480.     function GetFileName: string; virtual; stdcall; abstract;
  481.     function GetFileSystem: string; virtual; stdcall; abstract;
  482.     function NewProjectSource(const ProjectName: string): string; virtual; stdcall; abstract;
  483.     procedure NewDefaultModule; virtual; stdcall; abstract;
  484.     procedure NewProjectResource(Module: TIModuleInterface); virtual; stdcall; abstract;
  485.   end;
  486.  
  487.   { TIModuleCreator interface
  488.   }
  489.  
  490.   TIModuleCreator = class(TInterface)
  491.   public
  492.     function Existing: Boolean; virtual; stdcall; abstract;
  493.     function GetAncestorName: string; virtual; stdcall; abstract;
  494.     function GetFileName: string; virtual; stdcall; abstract;
  495.     function GetFileSystem: string; virtual; stdcall; abstract;
  496.     function GetFormName: string; virtual; stdcall; abstract;
  497.     function NewModuleSource(UnitIdent, FormIdent,
  498.       AncestorIdent: string): string; virtual; stdcall; abstract;
  499.     procedure FormCreated(Form: TIFormInterface); virtual; stdcall; abstract;
  500.   end;
  501.  
  502. implementation
  503.  
  504. end.
  505.